#include "mainwindow.h"
#include "menubar.h"
#include "toolbar.h"

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    mWorkspace(new WorkspaceWidget(this))
{
    initUI();
}

void MainWindow::initUI()
{
    setContentsMargins(0, 0, 0, 0);
    setCentralWidget(mWorkspace);
    setMenuBar(new MenuBar(this));
    addToolBar(Qt::TopToolBarArea, new ToolBar(this));
}
